package com.itheima.controller;

import com.itheima.service.LocalItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LocalItemController {

    @Autowired
    LocalItemService localItemService;

    @GetMapping("/hi")
    public String hi(String id) {

        return localItemService.hi(id);
    }
    @GetMapping("/hi1")
    public String hi1(String name) {

        return localItemService.hi1(name);
    }
    @GetMapping("/hello1")
    public String hello1(String name) {

        return localItemService.hello1(name);
    }
    @GetMapping("/hi2")
    public String hi2(String age) {

        return localItemService.hi2(age);
    }

    @GetMapping("/hello2")
    public String hello2(String age) {

        return localItemService.hello2(age);
    }
}
